package com.example.backblog.repository.blog;

import com.example.backblog.entity.blog.Category;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface CategoryRepository extends JpaRepository<Category, Long> {
    List<Category> findAllByNameEquals(String name);
    Category findFirstByNameEquals(String name);
}